from langchain_openai import ChatOpenAI
from langchain.schema import HumanMessage, AIMessage

llm = ChatOpenAI(
    temperature=0,
    openai_api_key="sk-rgymzddvnnrgwawnkevkdzlxkxfvhbviqgibbfgpvsyoqtur",
    openai_api_base="https://api.siliconflow.cn/v1",
    model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B"
)

message = [
    AIMessage(content="你好，我是wjduan"),
    HumanMessage(content="你好wjduan,我是狗剩"),
    AIMessage(content="认识你很高兴"),
    HumanMessage(content="你是谁？")
]
answer = llm.invoke(message)
print(answer)
